package com.yy.studyspringboot.service;

import com.yy.studyspringboot.dao.UserMapper;
import com.yy.studyspringboot.entity.User;
import com.yy.studyspringboot.entity.UserExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;
    public List<User> selectUsers() {
        List<User> users = userMapper.selectByExample(new UserExample());
        System.out.println(users);
        return users;
    }
}
